//
//  Step3InputView.m
//  Gunz
//
//  Created by Joggy on 16/4/16.
//  Copyright © 2016年 NUPT. All rights reserved.
//

#import "Step3InputView.h"
#import "GZConst.h"

@implementation Step3InputView

-(instancetype)initWithTitle:(NSString *)title {
    self = [super initWithFrame:CGRectMake(0, 0, [GZConst getScreenWidth], 61)];
    UILabel *titleLab = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 110*proportion, 17)];
    CGPoint tem = titleLab.layer.position;
    tem.y = 13;
    titleLab.layer.position = tem;
    titleLab.textColor = TEXT_TITLE_COLOR;
    titleLab.font = [UIFont systemFontOfSize:14];
    titleLab.textAlignment = NSTextAlignmentRight;
    titleLab.text = title;
    [self addSubview:titleLab];
    _textView = [[UITextView alloc] initWithFrame:CGRectMake(0, 0, 150*proportion, self.frame.size.height)];
    _textView.layer.position = CGPointMake(195*proportion, self.frame.size.height/2);
    _textView.layer.borderColor = TEXT_BORDER_COLOR.CGColor;
    _textView.layer.borderWidth = 1;
    _textView.layer.cornerRadius = 6;
    [self addSubview:_textView];
    return self;
}

@end
